package parameters;

public class Color3b {
	public byte r,g,b;
	
	public Color3b(byte r, byte g, byte b){
		this.r = r;
		this.g = g;
		this.b = b;
	}
	
	public Color3b(Color3b col){
		this.r = col.r;
		this.g = col.g;
		this.b = col.b;
	}
	
	public static float[] getFloats3f(Color3b col){
		float[] tmp = new float[3];
		tmp[0]	=	(col.r + 128) / 255.0f; 
		tmp[1]	=	(col.g + 128) / 255.0f;
		tmp[2]	=	(col.b + 128) / 255.0f;
		return tmp;
	}
}
